﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TGDD.master" AutoEventWireup="true" CodeFile="XemChiTietGioHang.aspx.cs" Inherits="XemChiTietGioHang" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">  
            <br />
            <asp:Label ID="lblTitle" runat="server" Text="Giỏ hàng của bạn" 
               style="font-size:13px;font-weight:bold;color:#cc0000;"/>
            <br />
            <asp:Label ID="lblStatus" CssClass="AdminPageText" 
            ForeColor="Red" runat="server" />
            <br />

            <asp:GridView ID="grid" runat="server" AutoGenerateColumns="False" 
                BorderWidth="0px" DataKeyNames="id" Width="100%" 
                onrowdeleting="grid_RowDeleting">
                <Columns>
                    <asp:BoundField DataField="TenSanPham" HeaderText="Tên sản phẩm" ReadOnly="True" 
                        SortExpression="TenSanPham" />
                    <asp:BoundField DataField="Gia" DataFormatString="{0:#,##0;Nothing}" HeaderText="Giá" 
                        ReadOnly="True" SortExpression="Gia" >
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="SoLuong">
                        <ItemTemplate>
                            <asp:TextBox ID="txtEditQuantity" runat="server" CssClass="GridEditingRow" 
                                 Width="24px" MaxLength="2" Text='<%#Eval("SoLuong")%>' />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="TongTien" DataFormatString="{0:#,##0;Nothing}" 
                        HeaderText="Tổng tiền" ReadOnly="True" SortExpression="TongTien" >
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:ButtonField CommandName="Delete" Text="Delete" >
                    <ControlStyle CssClass="SmallButtonText" />
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:ButtonField>
                </Columns>
            </asp:GridView>
            <br />
            <table width="100%">
                <tr>
                    <td style="width:300px">
                        <span class="ProductDescription">
                          Thành tiền:
                        </span>
                        <asp:Label ID="lblTotalAmount" runat="server" 
                                   Text="Label" CssClass="ProductPrice" />
                    </td>
                    <td>
                        <asp:Button ID="btnUpdate" runat="server" 
                                    Text="Cập nhật số lượng" CssClass="btnCheckOut"
                            onclick="btnUpdate_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnCheckOut" runat="server" CssClass="btnCheckOut" 
                        Text="Thanh toán" onclick="btnCheckOut_Click" />
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <br />
                        <asp:Label ID="lblValidateCheckout" runat="server" Text="" CssClass="ValidateCheckOut" ></asp:Label>
                    </td>
                </tr>
            </table>
            <br />
            <asp:Button ID="btnContinueShopping" runat="server" 
                         Text="Tiếp tục mua hàng" CssClass="btnCheckOut" 
                onclick="btnContinueShopping_Click" />
            <br />
            <br />
</asp:Content>

